﻿<UserControl x:Class="Domino.NumericUpDown"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Height="Auto">

    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <Button Name="btnLeft" Grid.RowSpan="2" Margin="-5,0,0,0" Height="18" VerticalContentAlignment="Center" Content="▲" 
                RenderTransformOrigin="0.5,0.5" Click="btnDecrease_Click">
            <Button.RenderTransform>
                <TransformGroup>
                    <RotateTransform Angle="-90"/>
                </TransformGroup>
            </Button.RenderTransform>
        </Button>
        <Button Name="btnRight" Grid.Column="2" Grid.RowSpan="2" Margin="0,0,-5,0" Height="18" VerticalContentAlignment="Center" Content="▲" 
                RenderTransformOrigin="0.5,0.5" Click="btnIncrease_Click">
            <Button.RenderTransform>
                <TransformGroup>
                    <RotateTransform Angle="90"/>
                </TransformGroup>
            </Button.RenderTransform>
        </Button>

        <TextBox Grid.Column="1" Grid.RowSpan="2" />

        <Button Name="btnUp" Grid.Column="2" Margin="0,-5,0,0" Height="18" VerticalContentAlignment="Center" Content="▲" Click="btnIncrease_Click" />
        <Button Name="btnDown" Grid.Row="1" Grid.Column="2" Margin="0,0,0,-5" Height="18" VerticalContentAlignment="Center" Content="▲" 
                RenderTransformOrigin="0.5,0.5" Click="btnDecrease_Click">
            <Button.RenderTransform>
                <TransformGroup>
                    <RotateTransform Angle="180"/>
                </TransformGroup>
            </Button.RenderTransform>
        </Button>
    </Grid>
</UserControl>
